/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package day02;

import java.util.Scanner;

/**
 *
 * @author Administrator
 */
public class TienDienTest {
    public static void main(String[] agrs){
     TienDien td = new TienDien();
     double tongtien = 0.0;
     Scanner scanner = new Scanner(System.in);
     /*
     System.out.println("Nhap vao chi so cu:");
     int csc = scanner.nextInt();
     System.out.println("Nhap chi so moi:");
     int csm = scanner.nextInt();
     if(csc >csm || csc <0 || csm <=0){
      System.out.println("Chi so dien khong hop le");     
     }
     else {
       tongtien = td.tinhTienDien(csc,csm);
       System.out.println("Tong Tien (gom VAT):" + tongtien);
       }
       */
      System.out.println("Nhap vao so n:");
      int n = scanner.nextInt();
      if(n<=1){
          System.out.println("Khong phai la so nguy-10en to");      
      }
      else {
            boolean result = td.kientraSNT(n);
            if(result){
                System.out.println("N la so nguyen to");
            }
            else {
                System.out.println("N khong phai nguyen to");
            
            }
      
      
      
      }
      
      
      
      
      
    
    
    }
    
}
